package org.example.service;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.example.model.dto.UserLoginDto;
import org.example.utils.IPUtils;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
 * @author weigang
 * @create 2022-11-08 15:16
 */

@AllArgsConstructor
@Service
@Slf4j
public class ISysUserServiceImpl implements ISysUserService{

    @Override
    public void login(UserLoginDto loginParam, HttpServletRequest request) {
        log.info(" ************ user login : [{}] , ip address : [{}] ,  ************ " , loginParam.getItCode(), IPUtils.getIpAddr(request));
    }
}
